package com.yhsoft.bill.controller.response;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author: yyyyyyyh
 * @create: 2023-11-07
 * @Version 1.0
 **/
@Data
public class SalerYszkOutVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 下游企业
     */
    @ApiModelProperty("下游企业id")
    private Integer customerId;

    /**
     * 下游企业
     */
    @ApiModelProperty("下游企业名称")
    private String customerName;

    /**
     * 总计应收金额
     */
    @ApiModelProperty("总计应收金额")
    private BigDecimal totalYsAmount;

    /**
     * 已收账款
     */
    @ApiModelProperty("已收账款")
    private BigDecimal totalPayAmount;

    /**
     * 未结款
     */
    @ApiModelProperty("未结款")
    private BigDecimal needPayAmount;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

}
